

package com.kimo.shop.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.kimo.shop.bean.model.NotifyLog;
import com.kimo.shop.bean.param.OrderParam;
import com.kimo.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

/**
 *
 *
 * @author kimo-taozhouchuan
 * @date 2020-07-01 15:44:27
 */
public interface NotifyLogMapper extends BaseMapper<NotifyLog> {

    /**
     * 分页获取消息日志
     * @param page 分页参数
     * @param orderParam 订单参数
     * @return 消息日志分页数据
     */
    IPage<NotifyLog> pageByParam(PageParam<NotifyLog> page, @Param("orderParam") OrderParam orderParam);

    /**
     * 根据订单号查询是否发送过催付消息
     * @param orderNumber 订单号
     * @return 催付消息数
     */
    Integer countMsgNum(@Param("orderNumber") String orderNumber);
}
